project(cplus_study)
cmake_minimum_required(VERSION 2.8)

#execute_process(COMMAND ${CMAKE_COMMAND} "-Wno-dev")

#设置调试库的后缀
set(CMAKE_DEBUG_POSTFIX "d")

#设置库和可执行文件的输出文件
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)


#添加子项目
add_subdirectory(src)


